package com.csun.cmny.provider.task;

import com.csun.cmny.provider.device.sleepcare.SleepCareProccess;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import javax.annotation.Resource;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-22 14:12
 * @Description: the class quartz task
 */
@Slf4j
public class QuartzTask extends QuartzJobBean {

    @Resource
    private SleepCareProccess sleepCareProccess;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext)
            throws JobExecutionException {
        log.info("#####sleep care proccess run<<<<<<<<<<<<<<<<");
//        sleepCareProccess.run();
    }
}
